package homeWork.SOC5.mission_extra;

/**
 * 测试类
 */
public class Test {
    public static void main(String[] args){
        //创建家书书写类对象
        HomeLetterWriter writer = new HomeLetterWriter();
        writer.setTitle("亲爱的爸爸、妈妈:");
        writer.setHello("你们好吗？");
        writer.setBody("我在这里挺好的。\n" +
                writer.normalRetract() + "我会努力学习的，已经学到Java OOP啦！\n" +
                writer.normalRetract() + "您二老保重身体啊！");
        writer.setGreeting("此致\n敬礼");
        writer.setSelft("   周杰\n" +
                        writer.selftRetract() + "2017年4月1日");

        //输出整篇文章
        System.out.println(writer.printArticle());
    }
}
